package com.zdkj.subway.st.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zdkj.common.core.exceltools.HeaderToColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ProjectName: zdkj
 * @Package: com.zdkj.subway.st.entity
 * @ClassName: SwStStockDayCheckDetail
 * @Description:
 * @Author: kangjian
 * @CreateDate: 2020/1/10 17:27
 * @Version: 1.0
 */

@Data
@TableName("sw_tk_stock_month_check_detail")
@ApiModel(value = "车票库存月盘点详细记录")
@EqualsAndHashCode(callSuper = true)
public class SwTkStockMonthCheckDetail extends Model<SwTkStockMonthCheckDetail> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识")
    private Integer id;

    @ApiModelProperty(value = "主表ID")
    private Integer refId;

    @ApiModelProperty(value = "票种Code")
    @HeaderToColumn(header = "票种",index = 2)
    private String ticketType;

    @ApiModelProperty(value = "车票名称Code")
    private String ticketTypeParam;

    @ApiModelProperty(value = "库区")
    @HeaderToColumn(header = "库区",index = 3)
    private String stockArea;

    @ApiModelProperty(value = "车票次数")
    private Integer ticketTimes;

    @ApiModelProperty(value="车票金额")
    private BigDecimal ticketPrice;

    @ApiModelProperty(value="本月结存")
    private Integer settleNumber;

    @ApiModelProperty(value="本月盘点数量")
    private Integer checkNumber;

    @ApiModelProperty(value="本月差异数量")
    private Integer differenceNumber;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value="盘点数量合计值")
    @TableField(exist = false)
    private Integer sumCheckNumber;
    @ApiModelProperty(value="差异数量合计值")
    @TableField(exist = false)
    private Integer sumDifferenceNumber;

}
